package org.light.test;

import org.light.framework.orm.annotation.Belongs;
import org.light.framework.orm.annotation.Column;
import org.light.framework.orm.annotation.PrimaryKey;
import org.light.framework.orm.annotation.Table;

@Table(name="DemoUser")
public class User {

	
	@PrimaryKey(name="ID")
	private String id;

	@Column(name="UserType")
	private UserTypeEnum userType;
	
	public UserTypeEnum getUserType() {
		return userType;
	}

	public void setUserType(UserTypeEnum userType) {
		this.userType = userType;
	}

	@Column(name="FName")
	private String name;

	@Column(name="Balance")
	private double balance;
	
	@Column(name="TimeCreated")
	private String timeCreated;

	//@Belongs(name="Creater_ID")
	private User creater;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	
	public String getTimeCreated() {
		return timeCreated;
	}

	public void setTimeCreated(String timeCreated) {
		this.timeCreated = timeCreated;
	}
	
	public User getCreater() {
		return creater;
	}

	public void setCreater(User creater) {
		this.creater = creater;
	}
}
